local extension = Package:new("zishucup")
extension.extensionName = "zishucup"

extension:loadSkillSkelsByPath("./packages/zishucup/pkg/zishucup/skills")

Fk:loadTranslationTable{
  ["zishucup"] = "自书杯" , 
  ["zishucupSP"] = "自书杯",
}

General:new(extension, "zishucup__lvju", "wu", 4, 4, General.Male):addSkills { "zishucup__nilang" }
Fk:loadTranslationTable{
  ["zishucup__lvju"] = "吕据", 
  ["#zishucup__lvju"] = "克绍堂构",
  ["cv:zishucup__lvju"] = "老班长与鱼刺",
  ["illustrator:zishucup__lvju"] = "真三国大战",
  ["designer:zishucup__lvju"] = "环己醇",

  ["~zishucup__lvju"] = "我，耻为叛臣！",
}

General:new(extension, "zishucup__bianrang", "qun", 3, 3, General.Male):addSkills { "zishucup__yanfeng", "zishucup__furen" }
Fk:loadTranslationTable{
  ["zishucup__bianrang"] = "边让", 
  ["#zishucup__bianrang"] = "尽肃恭乎",
  ["cv:zishucup__bianrang"] = "暂无",
  ["illustrator:zishucup__bianrang"] = "六龙争霸",
  ["designer:zishucup__bianrang"] = "猪",

  ["~zishucup__bianrang"] = " ",
}

General:new(extension, "zishucup__chendao", "shu", 4, 4, General.Male):addSkills { "zishucup__shangbing" }
Fk:loadTranslationTable{
  ["zishucup__chendao"] = "陈到", 
  ["#zishucup__chendao"] = "上兵鸿烈",
  ["cv:zishucup__chendao"] = "暂无",
  ["illustrator:zishucup__chendao"] = "Thinking",
  ["designer:zishucup__chendao"] = "环己醇",

  ["~zishucup__chendao"] = "陈到", 
}

General:new(extension, "zishucupSP__guli", "wu", 4, 4, General.Male):addSkills { "zishucup__jingfan" }
Fk:loadTranslationTable{
  ["zishucupSP__guli"] = "谷利", 
  ["#zishucupSP__guli"] = "争舵快航",
  ["cv:zishucupSP__guli"] = "暂无",
  ["illustrator:zishucupSP__guli"] = "未知",
  ["designer:zishucupSP__guli"] = "猪",

  ["~zishucupSP__guli"] = " ",
}

General:new(extension, "zishucup__limi", "jin", 3, 3, General.Male):addSkills { "zishucup__shuli", "zishucup__lunqing" }
Fk:loadTranslationTable{
  ["zishucup__limi"] = "李密", 
  ["#zishucup__limi"] = "青心难切",
  ["cv:zishucup__limi"] = "暂无",
  ["illustrator:zishucup__limi"] = "未知",
  ["designer:zishucup__limi"] = "猪",

  ["~zishucup__limi"] = " ",
}

General:new(extension, "zishucup__liangxi", "wei", 3, 3, General.Male):addSkills { "zishucup__yuanjiang", "zishucup__suqi" }
Fk:loadTranslationTable{
  ["zishucup__liangxi"] = "梁习", 
  ["#zishucup__liangxi"] = "共济方圆",
  ["cv:zishucup__liangxi"] = "易大剧",
  ["illustrator:zishucup__liangxi"] = "LiuHeng",
  ["designer:zishucup__liangxi"] = "易大剧",

  ["!zishucup__liangxi"] = "王思亦以义待我，使二人今日蒙魏王拔擢!",
  ["~zishucup__liangxi"] = "我以义待王思，纵使死又何惧！",
}

General:new(extension, "zishucup__yongkai", "shu", 4, 4, General.Male):addSkills { "zishucup__jiaoxia", "zishucup__jieshuo" }
Fk:loadTranslationTable{
  ["zishucup__yongkai"] = "雍闿", 
  ["#zishucup__yongkai"] = "腥尘啄碑",
  ["cv:zishucup__yongkai"] = "老班长与鱼刺",
  ["illustrator:zishucup__yongkai"] = "阵面对决",
  ["designer:zishucup__yongkai"] = "此方",

  ["!zishucup__yongkai"] = "刘备既死，我做蜀王！",
  ["~zishucup__yongkai"] = "孟获且记，蛮人永不为奴！",
}

--为了不让兵临城下出现在卡牌预览中的下策
if not Fk.cards["enemy_at_the_gates"] then
  local enemy_at_the_gates = fk.CreateCard{
    name = "&enemy_at_the_gates",
    type = Card.TypeTrick,
    skill = "zishucup__enemy_at_the_gates_skill",
  }
  extension:loadCardSkels{enemy_at_the_gates}
  extension:addCardSpec("enemy_at_the_gates")

  Fk:loadTranslationTable{
    ["enemy_at_the_gates"] = "兵临城下",
    [":enemy_at_the_gates"] = "锦囊牌<br/>"..
    "<b>时机</b>：出牌阶段<br/>"..
    "<b>目标</b>：一名其他角色<br/>"..
    "<b>效果</b>：你依次亮出牌堆顶四张牌，若为【杀】，你对目标使用之；若不为【杀】，将此牌置入弃牌堆。",
  }
end

General:new(extension, "zishucup__panzhang", "wu", 4, 4, General.Male):addSkills { "zishucup__qianshang", "zishucup__ruwo" }
Fk:loadTranslationTable{
  ["zishucup__panzhang"] = "潘璋", 
  ["#zishucup__panzhang"] = "醉凛阵鸣",
  ["cv:zishucup__panzhang"] = "幽蝶化烬",
  ["illustrator:zishucup__panzhang"] = "阵面对决",
  ["designer:zishucup__panzhang"] = "牧孖",

  ["~zishucup__panzhang"] = "蒙我主厚爱，免我百死，恨未能建功以报...",
}

General:new(extension, "zishucup__shantao", "jin", 3, 3, General.Male):addSkills { "zishucup__buqun", "zishucup__bugu" }
Fk:loadTranslationTable{
  ["zishucup__shantao"] = "山涛", 
  ["#zishucup__shantao"] = "千仞振嵩",
  ["cv:zishucup__shantao"] = "暂无",
  ["illustrator:zishucup__shantao"] = "UCHIDA",
  ["designer:zishucup__shantao"] = "朱苦力",

  ["~zishucup__shantao"] = " ",
}

return extension
